import request from '@/utils/request'

const prefixUrl = '/web/supplier_material/'

export function list(params) {
  return request({
    url: prefixUrl + 'list',
    method: 'get',
    params: params
  })
}

export function edit(data) {
  return request({
    url: prefixUrl + 'edit',
    method: 'post',
    content_type: 'json',
    data: data
  })
}

export function remove(params) {
  return request({
    url: prefixUrl + 'delete',
    method: 'delete',
    params: params
  })
}